import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class File2Collection {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("MyFile\\src\\tmp\\Alt2File.txt"));
        ArrayList<String> alt = new ArrayList<>();
        String line;

        while ((line = br.readLine()) != null) {
            alt.add(line);
        }
        br.close();
        for(String str : alt)
            System.out.println(str);
    }
}
